export const westPrescription = {
    panels: [
        {
            index: 0,
            paperType: "A5",
            height: 148,
            width: 210,
            paperHeader: 579,
            paperFooter: 419.52755905511816,
            printElements: [
                // ------------------------- 固定头部信息 -------------------------
                {
                    options: {
                        left: 480,
                        top: 1.5,
                        height: 22.5,
                        width: 103.5,
                        borderWidth: "1.5",
                        borderStyle: "solid"
                    },
                    printElementType: { type: "rect" }
                },
                {
                    options: {
                        left: 480,
                        top: 3,
                        height: 21,
                        width: 102,
                        fontSize: 16.5,
                        textAlign: "center",
                        textContentVerticalAlign: "middle",
                        field: "rxType"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 169.5,
                        top: 4.5,
                        height: 21,
                        width: 255,
                        fontSize: 18.75,
                        textAlign: "center",
                        textContentVerticalAlign: "middle",
                        field: "clinicPrescriptionName"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 9,
                        height: 16.5,
                        width: 67.5,
                        fontSize: 9,
                        textContentVerticalAlign: "middle",
                        field: "isGrowUp"
                    },
                    printElementType: { type: "text" }
                },
                // ------------------------- 患者信息 -------------------------
                {
                    options: {
                        left: 28.5,
                        top: 25.5,
                        height: 19.5,
                        width: 115.5,
                        title: "健康ID",
                        textContentVerticalAlign: "middle",
                        field: "patId"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 399,
                        top: 46.5,
                        height: 19.5,
                        width: 160.5,
                        title: "编号",
                        field: "code",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 46.5,
                        height: 19.5,
                        width: 120,
                        title: "费别",
                        field: "prhCostType",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 174,
                        top: 67.5,
                        height: 21,
                        width: 90,
                        title: "性别",
                        field: "sex",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 289.5,
                        top: 67.5,
                        height: 21,
                        width: 90,
                        title: "年龄",
                        field: "age",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 67.5,
                        height: 21,
                        width: 120,
                        title: "姓名",
                        field: "name",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 399,
                        top: 90,
                        height: 18,
                        width: 160.5,
                        title: "日期",
                        field: "date",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 90,
                        height: 19.5,
                        width: 120,
                        title: "门诊(住院)号",
                        field: "seedoctorId",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 111,
                        height: 16.5,
                        width: 531,
                        title: "住址(单位)",
                        field: "address",
                        fontSize: 9,
                        textContentVerticalAlign: "middle",
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 129,
                        height: 9,
                        width: 531,
                        borderWidth: "1.5"
                    },
                    printElementType: { type: "hline" }
                },
                // ------------------------- 诊断信息 -------------------------
                {
                    options: {
                        left: 28.5,
                        top: 132,
                        height: 19.5,
                        width: 531,
                        title: "临床诊断",
                        field: "westernDiagnos",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 154.5,
                        height: 19.5,
                        width: 531,
                        title: "备注",
                        field: "remake",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 28.5,
                        top: 175.5,
                        height: 9,
                        width: 531,
                        borderWidth: "1.5"
                    },
                    printElementType: { type: "hline" }
                },
                // ------------------------- 动态药品分组区域 -------------------------
                {
                    options: {
                        left: 28.5,
                        top: 185,
                        height: 400,
                        width: 531,
                        // 关键修改：使用绝对路径
                        field: "medicineGroups",
                    },
                    printElementType: { type: "text" }
                },
                // ------------------------- 固定底部信息 -------------------------
                {
                    options: {
                        left: 463.5,
                        top: 333,
                        height: 18,
                        width: 118.5,
                        title: "医师",
                        field: "doctor",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 27,
                        top: 352.5,
                        height: 9,
                        width: 532.5,
                        borderStyle: "dotted"
                    },
                    printElementType: { type: "hline" }
                },
                {
                    options: {
                        left: 253.5,
                        top: 355.5,
                        height: 18,
                        width: 120,
                        title: "调配医师/士",
                        field: "doctor",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 57,
                        top: 355.5,
                        height: 18,
                        width: 120,
                        title: "审核医师",
                        field: "doctor",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 418.5,
                        top: 357,
                        height: 18,
                        width: 120,
                        title: "核对、发药医师",
                        field: "doctor",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 418.5,
                        top: 384,
                        height: 18,
                        width: 120,
                        title: "取药科室",
                        field: "phayId",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                },
                {
                    options: {
                        left: 57,
                        top: 385.5,
                        height: 18,
                        width: 120,
                        title: "处方金额",
                        field: "prescriptionAmount",
                        fontSize: 9,
                        textContentVerticalAlign: "middle"
                    },
                    printElementType: { type: "text" }
                }
            ],
            paperNumberLeft: 481.5,
            paperNumberTop: 456
        }
    ]
};